package com.blogSystem.article.dao;

import com.blogSystem.article.pojo.Comment;
import com.blogSystem.article.pojo.CommentThumbs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentThumbsMapper {

    int insert(CommentThumbs commentThumbs);
    int deleteById(String id);
    int deleteByCommentId(String comment_id);
    int deleteByIds(List<String> list);
    List<CommentThumbs> selectAll();
    CommentThumbs selectById(String id);
    List<CommentThumbs> selectByUserId(String user_id);
    List<CommentThumbs> selectByCommentId(String article_id);

    List<CommentThumbs> selectByCommentIds(List<String> comment_ids);
    CommentThumbs selectByUserIdAndCommentId(String comment_id,String user_id);
    int update(CommentThumbs commentThumbs);
}
